package com.jvyou.app.ds.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jvyou.app.common.domain.entity.SysFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * 文件表(SysFile)表服务接口
 *
 * @author 橘柚
 * @since 2025-03-07 11:00:41
 */
public interface SysFileService extends IService<SysFile> {

    /**
     * 文件上传服务
     *
     * @param multipartFile 文件
     * @return 文件信息
     */
    SysFile upload(MultipartFile multipartFile);

    void download(Long uuid, HttpServletResponse response);

    void downloadByPath(String path, HttpServletResponse response);
}

